﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Collections;

namespace B2B.Controllers
{
    public class HomeController : AlibabaApplicationController
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            
            Models.SP_DanhSachSanPham sp_DanhSachSanPham = new Models.SP_DanhSachSanPham();
            ArrayList lis_SP = sp_DanhSachSanPham.DanhSachSanPham();
            ViewData["listSP"] = lis_SP; 
            return View();
        }
      
        public JsonResult DanhSachDanhMuc(int id)
        {
            Models.DanhMuc dm = new Models.DanhMuc();
            List<Models.DanhMuc> list = dm.DanhSachDanhMuc(id);
      //      var data = new { name = "AAAA", id = "1234" };
            return Json(list, JsonRequestBehavior.AllowGet);
        }
        [HttpPost]
        public ActionResult Index(int id, int maSP)
        {
            return View();
        }

        public ActionResult MP4_Player()
        {
            return View();
        }

        public ActionResult Tivi()
        {
            return View();
        }

        
       
    }
}
